package com.dms.modules.product.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 商品查询DTO
 */
@Data
@ApiModel(value = "商品查询DTO", description = "商品查询数据传输对象")
public class ProductQueryDTO {
    
    @ApiModelProperty("页码")
    private Integer pageNum = 1;
    
    @ApiModelProperty("每页数量")
    private Integer pageSize = 10;
    
    @ApiModelProperty("关键词")
    private String keyword;
    
    @ApiModelProperty("商品名称")
    private String name;
    
    @ApiModelProperty("分类ID")
    private Long categoryId;
    
    @ApiModelProperty("商家ID")
    private Long merchantId;
    
    @ApiModelProperty("最低价格")
    private BigDecimal minPrice;
    
    @ApiModelProperty("最高价格")
    private BigDecimal maxPrice;
    
    @ApiModelProperty("商品状态：0-下架 1-上架")
    private Integer status;
    
    @ApiModelProperty("是否推荐：0-否 1-是")
    private Integer isRecommend;
    
    @ApiModelProperty("是否新品：0-否 1-是")
    private Integer isNew;
    
    @ApiModelProperty("是否热销：0-否 1-是")
    private Integer isHot;
    
    @ApiModelProperty("排序字段：1-综合 2-销量 3-价格升序 4-价格降序")
    private Integer sortField;
    
    @ApiModelProperty("排序方式：0-降序 1-升序")
    private Integer sortOrder;
} 